title: Set headers after countdown timer expires
body: <p>I have a countdown timer that counts from 10 down to 0. I want to set new headers after the countdown timer expires...</p>
  
  <pre><code>   var timeleft = 10;
     var downloadTimer = setInterval(function(){
         document.getElementById("countdown").innerHTML = timeleft;
         timeleft -= 1;
  
         if(timeleft &lt;= -2){
              clearInterval(downloadTimer);
              document.getElementById("countdown").innerHTML = "0"
         }
     }, 1000);
  </code></pre>
  
  <p>Any one knows the easiest way of achieving this?</p>