Maybe add in client.js additional value to `PDFJS`, original worker loader URL and then set `PDFJS.workerSrc` to ours. And then use here in this code the value from PDFJS.