title: How to use JS part of phonegap plugin after installing with CLI in 3.x ?
body: <p>I am trying to upgrade an existing phonegap 2.x plugin to use with my project (phonegap 3.5). This is what the js part of my plugin.xml looks like </p>
  
  <pre><code> &lt;js-module src="www/att.js" name="att"&gt;
    &lt;clobbers target="AttPlugin" /&gt;
  &lt;/js-module&gt;
  </code></pre>
  
  <p>I saw an example of how this js was used in the  phonegap 2.x version of this plugin. This is what the code in their sample application looked like </p>
  
  <pre><code>define([ "require", "exports", "module", "att" ], function(require, exports,
      module) {
  
  /*
   * require att.js in 'phonegap' variable
   */
  
  phonegap = require('att');
  
  phonegap.ATT.authorize(accessKey, secretKey, scope, grantType);
  
  });
  </code></pre>
  
  <p>In my code for my phonegap 3.5 application using the plugin.xml whose snippet i posted above this is what i am doing </p>
  
  <pre><code>AttPlugin.ATT.authorize(accessKey, secretKey, scope, grantType);
  </code></pre>
  
  <p>I get an error saying ATTPlugin is undefined . What am i doing wrong? 
  Here is a link to the js file for reference--> <a href="https://www.dropbox.com/s/yzwe6b3fjpq3cac/att.js" rel="nofollow">ATT.JS</a></p>