socket.js update