Finish _iterate function in animator.js.