Simple Implementation of chat application using socket.io