Update pubsub.js