Openstack API implementation in pure javascript