Arduino String Length Array Javascript Function Declaration