Update utils.js

The tagName property outputs "DIV" (uppercase) for HTML documents, but for XHTML documents the tagName property sometimes matches the case of the source code.