Update index to work with pathing on heroku