Removing the include from the XMl
move the _main() call to the bottom of the program instead of relying on callbacks and events just use sync xhr because we are in a web worker