Cleaning up cloud_client.js