[JS heading snippet]
for (var i = 0, headings = $$('h1,h2,h3,h4,h5,h6'); i < headings.length; i++) { console.log(headings[i].textContent.trim() + " " + headings[i].tagName, headings[i]); }