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