fixing typo on cancelAnimationFrame