shim requestAnimationFrame