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