Removed `window` references to support web workers.