JavaScript: Sexy Pub Sub