removed wrapper code for web worker since lib already works that way