script that runs in its own global scope, separate from the document window
may run on a separate thread