title: javascript autoreload in infinite loop with time left till next reload
body: <p>i need a JavaScript, that relaods a page every 30 seconds, and will show how much time there is until next reload at the ID time-to-update, Example:</p>
  
  <pre><code>&lt;p&gt;Refreshing in &lt;span id="time-to-update" class="light-blue"&gt;&lt;/span&gt; seconds.&lt;/p&gt;
  </code></pre>
  
  <p>i also need it to repeat itself infinitely.</p>
  
  <p>thank you for reading, i hope it helps not me but everyone else, and a real big thank you if you could make this script.</p>