Move app module creation from main.js to app.js