Add PDFJS.abortGetDocument function to enable cancelling of calls to PDFJS.getDocument