Added snippet for requestAnimationFrame()