title: jQuery getScript returns an parse error exception
body: <p>I'm trying to load two scripts with the <code>$.getScript</code> function of getting Google Map script, then after that is loaded, I get another script (<a href="http://www.pittss.lv/jquery/gomap/" rel="noreferrer"><code>goMap</code></a>) which makes map applets easily to be made.</p>
  
  <p>However, when loaded, the first script of getting Google Map API is good, then the second script returns a parse error and shows this:</p>
  
  <blockquote>
    <p>TypeError: 'undefined' is not a constructor'</p>
  </blockquote>
  
  <p>Yet, I don't know where that is referencing from or which line, I think it must be trying to execute the Geocoder on this file (first line after <code>(function($){</code>:</p>
  
  <blockquote>
    <p><a href="http://www.pittss.lv/jquery/gomap/js/jquery.gomap-1.3.2.js" rel="noreferrer">http://www.pittss.lv/jquery/gomap/js/jquery.gomap-1.3.2.js</a></p>
  </blockquote>
  
  <p>Here is my code:</p>
  
  <pre><code>$.getScript('http://maps.google.com/maps/api/js?sensor=true').done(function()
  {
      $.getScript('../js/gomap.js').done(function()
      {
              // this never gets called
              alert('gomap loaded');
      }).fail(function(jqxhr, settings, exception)
      {
          alert(exception); // this gets shown
      });
  }).fail(function()
  {
      alert('failed to load google maps');
  });
  </code></pre>
  
  <p>I tried changing the AJAX settings to set <code>async</code> to <code>false</code>, but it didn't help at all.</p>