Modified WebWorker wrapper so that it communicates synchronically with web worker