Refactored to isolate the jQuery implementations of publish, listen, and remove in their own pubsub object. Removed compare().