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