Moved hook.js init from app.js to layout for heroku development