Angular.JS and rest