Supposedly setTimeout exists in a web worker, but I just realized that this reference to window will probably fail. Happy to use a polyfill if one exists.