title: jQuery ReferenceError for "define" in jquery.js and for $
body: <p>just started the jQuery tutorial and stuck on the ready event part. Opening the html and file and clicking the "jQuery" link, no alert pop-up comes up like it's supposed to, it goes straight to the jQuery home page instead. </p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;meta charset="utf-8" /&gt;
      &lt;title&gt;Demo&lt;/title&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
      &lt;a href="http://jquery.com/"&gt;jQuery&lt;/a&gt;
      &lt;script src="jquery.js"&gt;&lt;/script&gt;
      &lt;script&gt;
      &lt;/script&gt;
      &lt;script&gt;
          $( document ).ready(function() {
              $( "a" ).click(function( event ) {
                  alert( "Thanks for checking" );
              });
          });
  
  
      &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><strong>Update and more details:</strong>
  after checking with Firebug, the two errors are <code>ReferenceError: define is not defined</code>for the <code>jquery.js</code> file and the <code>ReferenceError: $ is not defined</code> for the html file. I'm guessing the latter is due to jQuery not working. I installed jQuery with Bower and copied the jquery.js file in the <code>src</code> directory to the same directory as where my html file is. Is this not how it's done? I have tried using the path to this file's original location, but the errors are the same.</p>
  
  <p><strong>Update 2:</strong> inserting <code>javascript/jquery</code> instead of <code>jquery.js</code> into the <code>&lt;script src =</code> has helped to get rid of the first ReferenceError, <code>$ is not defined</code> still comes up.</p>
  
  <p><strong>The Solution:</strong> using the minimized version of <code>jquery.js</code> (i.e. the <code>jquery.min.js</code>) got rid of the errors for me. Using the google hosted one <code>http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js</code> or downloading it to your HD both work. </p>