fixed $.scripts.define
improved triggering the DOM events