Add requestAnimationFrame to example