Split up app.js