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