Prefixed webkitRequestAnimationFrame for Safari compatability.