title: TypeError: GMaps is not a constructor
body: <p>I'm trying to use <a href="http://hpneo.github.com/gmaps/examples/basic.html" rel="nofollow">gmaps.js</a> to display a Google Map on my website.</p>
  
  <pre><code>&lt;div id="map"&gt;
      &lt;!-- GMaps.js injection here. --&gt;
  &lt;/div&gt;
  
  &lt;script language="javascript" type="text/javascript"&gt;
      $(document).ready(function () {
          var map = new GMaps({
              div: '#map',
              lat: -12.043333,
              lng: -77.028333
          });
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>I get the following error on Firebugs console:</p>
  
  <pre><code>TypeError: GMaps is not a constructor
      lng: -77.028333
  </code></pre>
  
  <p>In my _Layout.cshtml file, here are the references to jQuery and other Javascript libraries:</p>
  
  <pre><code>&lt;head&gt;
  &lt;script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"&gt;
  &lt;script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.8.23/jquery-ui.min.js"&gt;
  &lt;link href="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.10/themes/blitzer/jquery-ui.css" rel="Stylesheet"&gt;
  &lt;link rel="stylesheet" type="text/css" href="/cassette.axd/asset/Public/assets/stylesheets/main.less?zrfwD7IeGX87BD2hXeX_19D7PM4="&gt;
  &lt;link rel="stylesheet" type="text/css" href="/cassette.axd/asset/Public/assets/stylesheets/bootstrap.css?Fr-zb2zZgNbHEFtP2LHSlWzPcTc="&gt;
  &lt;script type="text/javascript" src="/cassette.axd/asset/Public/assets/javascripts/gmaps.js?l4YO_kYaJ82XSUboAjqvgNOTSog="&gt;
  &lt;script type="text/javascript" src="/cassette.axd/asset/Public/assets/javascripts/jquery.unobtrusive-ajax.js?1e4_Y6C_dosNDw5vnP_HMJnJOaI="&gt;
  &lt;script type="text/javascript" src="/cassette.axd/asset/Public/assets/javascripts/jquery.validate.js?N48SH-DQLi1ZxkCU5H4QfkU_Vqk="&gt;
  &lt;script type="text/javascript" src="/cassette.axd/asset/Public/assets/javascripts/jquery.validate.unobtrusive.js?H9QpwLXle-pJHFboqVks8SmWPD8="&gt;
  &lt;script type="text/javascript" src="/cassette.axd/asset/Public/assets/javascripts/MicrosoftAjax.debug.js?5os4UsHTQvdRWuk_dD_ZJbhKv2o="&gt;
  &lt;script type="text/javascript" src="/cassette.axd/asset/Public/assets/javascripts/MicrosoftMvcAjax.debug.js?VuXJYhbnFpRWN4gr3pwlAyCdWUg="&gt;
  &lt;script type="text/javascript" src="/cassette.axd/asset/Public/assets/javascripts/MicrosoftMvcValidation.debug.js?HcBKh9uDD_B8LpYqpQW1dYU6woI="&gt;
  &lt;/head&gt;
  </code></pre>
  
  <p>Any ideas why this is being fired?</p>