script to talk to any backend using httpRequest and JSON