Why doesn't Javascript let me close up my function?
<p>I dunno guys, this is a really weird one, but I might just be making a simple mistake and not even realizing it.</p>

<p>I'm <em>sort of</em> a newbie to Javascript, so I'm attempting to write a script that gets content from a PHP script (which returns only a number) and write that data to a div... but Javascript had other ideas. I'm testing on Chrome on Mac OS X, although it doesn't work on Safari either.</p>

<p>The following block is giving me problems:</p>

<pre><code>function getContent() {
 window.setInterval(function () {
  $.get("get.php", function (data) {
   $('#img').slideUp();
   $('#div').html(data);
   $('#div').slideDown();
  }
 }
}
</code></pre>

<p>Which is failing with:</p>

<pre><code>Uncaught SyntaxError: Unexpected token }
</code></pre>

<p>on line <code>51</code>, or line <code>8</code>, for the purposes of this example.</p>

<p>Does anyone know why it would fail like this? Don't I need to close the brackets I open?</p>
