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