clean-up app.js a bit...