Move application logic from server.js to app.js
Require modules within single 'var'