Hooked up cloud endpoint's javascript client.