Added support for custom tags when creating with createElement(tagName)