Fix for Safari

Firefox still has issues since it doesn't seem to support setValueCurveAtTime()