https://github.com/mozilla/pdf.js/blob/master/examples/helloworld/hello.js