Update _animate.js

update the var "isAnimating" to handle the animationId