updated websockets js for heroku