Real time chat app with node.js and mongodb