Using document instead of window, fixing bower ignore, typo in public/js/app.js