refactored order of modules in app.js