requestAnimationFrame fix for Chrome 26