move config into app.js
fix homepage script