Fix dependency injection for app.js and factories to prep for heroku