Arduino String Length Array Javascript Function