JavaScript: Sexy PubSub