Update utils.js

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