Update javascript websocket client