Fixing app.js calling order, thanks to git bisect :)