JavaScript: JQuery PubSub