Passed the cacheBust variable into function rather than recreate it.  This ensures that the same version of cacheBust is used throughout, instead of two versions.  It also ensure that the a consistent methodology is used.
No-longer assigning window to global.  This removes the need to pass global into the function.  It means less safety, certain methods/objects may break that are normally accesses via window (such as setTimeout, setInterval, localStorage).
Now passing importScriptsCacheBust into webworkerDojoConfig() rather than recreating inside the function.  Also, stopped passing global into the function.
Removed line in fixupUrl() that related to Java strings.  It is likely this is related to Rhino use and not applicable here.
Added todo comment on potentially making injectUrl() quicker and better.