title: js setInterval - increase speed gradually
body: <p>How can I make setInterval to increase speed gradually, like start from 1000 ms and than go down until 40 ms gradually in few seconds by 1 ms at a time.</p>
  
  <p>Any thoughts?</p>
  
  <p>This is my code:</p>
  
  <pre><code>setTimeout(function() {bonustimer = setInterval(function() { handleTimer2(rushcount); }, 40);}, 1000);
  
  
  handleTimer2 = function() {
  if(rushcount === -1) {
  clearInterval(bonustimer);      
  } else {
  $('.digit-wrapper').html(rushcount);
  rushcount--;
  }}
  </code></pre>