updated index.js for Heroku testing.