first connection between cloud endpoints and angularjs working