Abstract all JS into app.js