organize app.js