Cleaning up the main app.js file.