added modeChanges that overrides the standard mode
extend jQuery with the registration functions