use xhr polling for heroku