rewriting of testable webworker: espsParserWorker