Workers are destroyed before function is completed
Possible solution:
Assign the worker variable to form element like so
form.__worker = createWorker();
This way there is a reference to the worker in a more global space?
Possible Issues
Needs to be tested to see if the issue is that it's not a GLOBAL variable or if it just needs a DOM reference