Recreating FB chat in node.js