var container = document.getElementById("gpViewCount"); if(container){ container.innerHTML = "38"; }else{ document.write("38"); }