Arduino Pass Variable To Javascript Substring Function