updated index.js for heroku of course.