title: PDFJS.getDocument not working and not throwing an error
body: <p>It's not going into the <code>.then</code> afterwards, and it's not throwing any error.</p>
  
  <p>Here's my calling code:</p>
  
  <pre><code>function loadPage(base64Data, pageIndex) {
    var pdfData = base64ToUint8Array(base64Data); 
    // this gets hit
    PDFJS.getDocument(pdfData).then(function (pdf) { 
      // never gets here
      pdf.getPage(pageIndex).then(function (page) {
        var scale = 1;
        var viewport = page.getViewport(scale);
        var canvas = document.getElementById('pdfPage');
        var context = canvas.getContext('2d');
        canvas.height = viewport.height;
        canvas.width = viewport.width;
        page.render({ canvasContext: context, viewport: viewport });
      });
    });
  }
  
  function base64ToUint8Array(base64) {
    var raw = atob(base64); // convert base 64 string to raw string
    var uint8Array = new Uint8Array(raw.length);
    for (var i = 0; i &lt; raw.length; i++) {
      uint8Array[i] = raw.charCodeAt(i);
    }
    return uint8Array;
  }
  </code></pre>
  
  <p>At one point it worked. When I step through it in the debugger, I can step into <code>PDFJS.getDocument</code> but that's way over my head.</p>
  
  <p>My base64Data looks like <code>JVBERi0x...g==</code>. It's a base64 encoded pdf document.</p>