moving some stuff in init of app.js