cross browser animationend event listener