Simple observer pattern implementation with jQuery usage