Arduino String Length Array Javascript Function Syntax