Swaps jQuery pubsub for Observer pattern