AngularJS REST API experiment