cleaned up app.js and renamed it to main.js