XHTML requires node names to be specified in lowercase

When used in XHTML, elements fail to work as intended. XHTML expects node names to be specified in lowercase. This pull request sets nodeName to lowercase when creating elements. Tested in Firefox.