Nodejs chat application using socket.io