var h = document.getElementsByTagName("h1");
var h = document.getElementsByTagName('H1')[0].innerHTML;