Building a real-time chat client with Node and Socket.io