Javascript: Sexy PubSub