createElement tests rewritten to use prototype to determine type and newHTMLElementPrototype() function