cleanup app.js & introduce config.js file