Setting up a HTML5 animation loop using requestAnimationFrame | Dark Hacker News