Little helper for requestAnimationFrame.