changed socket.js