fix socket.js