mozilla/pdf.js — pull request #3416 by mitar (2013-06-30 03:27:22+00:00)
Title: typeof HTMLElement does not work in jsdom node.js module.

typeof HTMLElement does not work in jsdom node.js module:

https://github.com/tmpvar/jsdom/issues/649

I am using pdf.js inside node.js and by this simple change it works perfectly.