Updated 0001 to use requestAnimationFrame