Started porting Backbone.js code to AngularJS