Incremental parsing with feedback in a web worker