firefox fix, update and callbacks

fixed firefox issue, throttled offset update function, re-organized callbacks.