requestAnimationFrame example