some $.DOM updates and additions

$.DOM.clear and $.DOM.val update;
added $.DOM.has, $.DOM.rmAttr