Update ws.js