changed websocket address in js so works on heroku and locally