started working on API scripts
javascript auth and listServices functions