modify app.js for Heroku deployment