Made web worker work