app.js cleanup