Arduino String Length Array Javascript Iteration