WorkerBuilder builds a WebWorker from a funtion