title: Failed to run constructor: TypeError: Object #<an Object> has no method 'addPlugin'
body: <p>I am trying to add a macaddress plugin into my project. but what i got is
  "Failed to run constructor: TypeError: Object # has no method 'addPlugin' at file:///android_asset/www/javascripts/cordova-2.0.0.js:297 " from the logchat. Can anybody kowns how can I deal with it to make my plugin work.
  I am using plugin from <a href="https://github.com/phonegap/phonegap-plugins/tree/master/Android/MacAddress" rel="nofollow">https://github.com/phonegap/phonegap-plugins/tree/master/Android/MacAddress</a>. 
  In my application.js files, I wrote</p>
  
  <pre><code>    function onLoad() {
          console.log('Init reached');
          document.addEventListener('deviceready', onDeviceReady, false);
      }
  
      function onDeviceReady() {
  
          console.log('Starting up...');
      //  navigator.app.overrideBackbutton(true);
          document.addEventListener("backbutton", onBackKeyDown, false);
  
      }
  
  function getMacAddress(){
      /*get macaddress*/
      var networkInterface = {};
      // Get network interface   
      networkInterface = window.plugins.macaddress.getMacAddress();
  
      console.log(networkInterface.mac);
      $("#wifi_mac_address").text(networkInterface.mac);   
  }
  </code></pre>
  
  <p>In index.html file, I wrote</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
      &lt;head&gt;
          ...
      &lt;script type="text/javascript" charset="utf-8" src="javascripts/cordova-2.0.0.js"&gt;&lt;/script&gt;
          &lt;script type="text/javascript" charset="utf-8" src="javascripts/application.js"&gt;&lt;/script&gt;
          &lt;script type="text/javascript" charset="utf-8" src="javascripts/jquery/jquery.mobile-1.1.1.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" charset="utf-8" src="javascripts/MacAddress.js"&gt;&lt;/script&gt;
  
     &lt;/head&gt;
      &lt;body onload="onLoad()"&gt;
           ...
  
            &lt;li data-theme="c"&gt;
                   WiFi mac address:
                   &lt;span id="wifi_mac_address"&gt;
                   123
                   &lt;/span&gt;
            &lt;/li&gt;
  
           ...
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I started phonegap and Jquery mobile for just 3 weeks.Please give me some advices to solve it if you know.
  Thanks a lot in advance.</p>