do the parsing in a web worker