update the nodejs to use json to support json objects in the parameters; fix the endpoint for production