Arduino String Replace Function In Javascript With Parameters