patch to get pdfjs running under node