Made app.js boilerplate a bit 'smarter'