updating ng-models and creating app.js