convert project from ember.js to angularJS