drop the second optional param in DOM.extend
return $NullElement back for better clarity and improve jsdocs