fixed some issues with require in app.js & config.js