prevented writing to window.requestAnimationFrame and removed unused cancelFrame