fixed compatibility of webworker with Chrome