Add PDFJS.abortGetDocument function to enable canceling calls to PDFJS.getDocument