jQuery not auto executing a command
<p>Strangest thing... locally this auto scrolls, but once I upload it to my server, it doesn't auto scroll. The files are exactly the same. I even uploaded the entire working directory and it doesn't auto rotate. Any ideas?</p>

<pre><code>$(document).ready(function() {

    $('#viewport').carousel('#previous', '#next');

    //The auto-scrolling function
    function slide(){
      $('#next').click();
    }
    //Launch the scroll every 2 seconds
    var intervalId = window.setInterval(slide, 6000);

    //On user click deactivate auto-scrolling
    $('#previous, #next').click(
    function(event){
      if(event.originalEvent){
          window.clearInterval(intervalId);
      }
    }
    );

});
</code></pre>

<p>I am using the plugin <a href="http://code.google.com/p/jquery-infinite-carousel/" rel="nofollow">http://code.google.com/p/jquery-infinite-carousel/</a></p>
