Move regex searches to a web worker to stop the browser from hanging