How do I resolve this "Undefined function" JavaScript Error?
<p>I keep getting a "Undefined function" <a href="http://en.wikipedia.org/wiki/JavaScript" rel="nofollow">JavaScript</a> error in my error console. Any idea why?</p>

<pre><code>&lt;div id="counter" style="width: 40px;"&gt;&lt;/div&gt;

&lt;script type="text/javascript"&gt;
    var seconds = 60
    document.getElementById('counter').innerHTML = seconds

    function countDown() {
     if(seconds &lt;= -1) {
      seconds += 1
     } else {
      seconds -= 1
      document.getElementById('counter').innerHTML = seconds
      setTimeout("countDown()", 1000)
     }
    }

    countDown();
&lt;/script&gt;
</code></pre>
