Update library to with with PDF.js's HTML rendering mode

Now that we have switched from xhtml to html mode,
the html element names are no longer automatically lowercased.
This broke page un-rendering detection. Now I am fixing it.