Javascript: Sexy Pubsub