Integrating AngularJS and making custom service using GAPI