Updating socket.io to use ajax instead of websockets in order to work in Heroku