stub out dom objects for use in a web worker