cleaning out socket.js