Chat emulator using nodejs and mongodb