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