Add PDFJS.abortGetDocument function to enable cancelling of calls to PDFJS.getDocument
Add unit test for PDFJS.abortGetDocument