Update animation.js