consolidated the module manager into the app.js code