Fix for W3C requestAnimationFrame