index.js for heroku