Add an example for pub-sub pattern in node.js