function new_dom(_tag='div',_inner='',_class=[ ],_attr={ }) {
let dom= document.createElement(_tag);
if (_inner) dom.innerHTML= _inner;
for (let x of _class) dom.classList.add(x);
for (let x in _attr) dom.setAttribute(x,_attr[x]);
return dom;
}