rewriting of testable webworker: textGridParser