adjusted the order of executions in app/js/app.js