pdf.js Promise fix