(function rec(el){ var childs = el.childNodes, i = childs.length; while(i--) if( el.nodeType === 1 ) rec( childs[i] ); }(document.body))