AngularJS and Kinvey library