setting up chat with socket.io