cleanup app.js a bit