Javascript PubSub library