Adding transitionEnd support for non-WebKit browsers