updated variable name in socket.js