Match code in animate.js and code in README