setImmediate browser is attached to doc