can't use window in workers