small bug in the 'animate' function -- placed isAnimating check inside el.each loop