<script> var wait = 6484; setInterval(function(){ $("#mainum").html(wait ); wait--; },1000); </script>