First version working with a WebWorker