I've just noticed that web workers have the importScripts function availble. This allows me to skip most of the complicated worker bootstrapping process.  The only awkward part is that the worker still needs to know the address of the YUI library.  For the time being, I've hacked that with .php.  In future, I should fix it by doing something like passing the YUI library address as an argument in the Worker initialization.