Fix $.event.trigger for jQuery 1.9+

jQuery 1.9+ removes $.event.trigger so we should use jQuery.fn.trigger() instead.