socket.io organizing