Implementation of chat server in node js with using mongodb