fixed so websocket works on firefox