fixed function to run exising events on mouseover and mouseout for different jQuery versions