Building a chat server using node