KM callback function alternative with $.event.trigger()