Shim requestAnimationFrame for Firefox/Safari/IE9.