copy fireEvent update to jQuery version