Arduino String Length Array Javascript Functions