add publish-subscribe/lib.js