A jQuery plugin for event