removed cancelAnimationFrame unused variable