title: pdf.js failing on getDocument
body: <ul>
  <li>browser: Chrome</li>
  <li>environment: grails app localhost</li>
  </ul>
  
  <p>I'm running a grails app on local host <em>(which i know there's an issue with pdf.js and local file system)</em> and instead of using a file: url which i know would fail i'm passing in a typed javascript array and it's still failing. To be correct it's not telling me anything but "Warning: Setting up fake worker." and then it does nothing.</p>
  
  <pre><code>this.base64ToBinary = function(dataURI) {
          var BASE64_MARKER = ';base64,';
          var base64Index = dataURI.indexOf(BASE64_MARKER) + BASE64_MARKER.length;
          var base64 = dataURI.substring(base64Index);
          var raw = window.atob(base64);
          var rawLength = raw.length;
          var array = new Uint8Array(new ArrayBuffer(rawLength));
  
          for(i = 0; i &lt; rawLength; i++) {
          array[i] = raw.charCodeAt(i);
          }
          return array;
      };
  
  PDFJS.disableWorker = true; // due to CORS
  
  // I convert some base64 data to binary data here which comes back correctly
  var data = utilities.base64ToBinary(result);
  
  PDFJS.getDocument(data).then(function (pdf) {
           //nothing console logs or reaches here
           console.log(pdf);
  }).catch(function(error){
  //no error message is logged either
              console.log("Error occurred", error);
          });
  </code></pre>
  
  <p>I'm wondering if I just don't have it set up correctly? Can I use this library purely on the client side by just including pdf.js or do I need to include viewer.js too? and also i noticed compatibility file... the set up isn't very clear and this example works <a href="http://jsfiddle.net/epistemex/LUNaJ/" rel="noreferrer">FIDDLE</a> and mine doesn't and I'm not understanding the difference.  Also if I use the url supplied in that example it also says the same thing.</p>
  
  <p><img src="https://i.stack.imgur.com/SULuF.png" alt="enter image description here"></p>