renamed hub.js to pubsub.js