added onAnimEnd event, which is triggered when an animation is completed. added logAnimations to log all animations in the current dictionary