change requestAnimationFrame shim for proper fallback