window.location.host should allow heroku hosting to work