https://github.com/peerlibrary/pdf.js/blob/peerlibrary/src/core/worker.js#L444