Fixes so the AngularJS app actually works