Add requestAnimationFrame shim.