JavaScript: jQuery pubSub