Add support to "animationend" event
Code Reformat