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