adding socket.js