Arduino Define String Length Function In Javascript