Never done pubsub in javascript.  For nice visualization, I am going to use it to change the data for a number of charts when the a button is clicked.