websocket.js fix