removed a level of indentation from main app.js file for readablility