fixing the transitionEnd event (for real this time)