npmified, added cancelAnimationFrame