REST App with RequireJS and AngularJS