Extending types of typeOf fn with DOM elems