title: Writing a Cordova Plugin with a dependency: ReferenceError: Can't find variable
body: <p>I'm attempting to write a cordova plugin that depends on another plugin.  My plugin specifies a dependency like so:</p>
  
  <pre><code>&lt;dependency id="fr.pierrickrouxel.cordova.plugin.iCloudKV" url="https://github.com/pierrickrouxel/phonegap-icloudkv-plugin.git" /&gt;
  </code></pre>
  
  <p>Then, in my .js component, I attempt to reference the 'iCloudKV' javascript variable that is exported by the dependent plugin, but I get this error:</p>
  
  <pre><code>ReferenceError: Can't find variable: iCloudKV, http://172.20.1.101:8101/cordova.js, Line: 71
  </code></pre>
  
  <p>Is there an approved way to reference javascript in dependent plugins?  Is the "module.export" from the iCloudKV plugin importable in some way with a require() or something?  I've tried the obvious things, but nothing seems to match.</p>