Migrated app to AngularJS