Making app.js Heroku friendly.