Cleaned up server/socket.js