title: Cordova device plugin not working
body: <p>I have a simple Phonegap Build application where I am trying to use the device plugin.  I have installed the plugin via command line and have confirmed that it is installed.</p>
  
  <p>I have the following js inside onDeviceReady:</p>
  
  <p><code>alert(device.platform);</code> and <code>alert(device.model);</code></p>
  
  <p>I get white screen with no alerts.</p>
  
  <p>Chrome dev tools remote inspect console says:
  Uncaught ReferenceError: platform is not defined</p>
  
  <p>The plugin is not being recognized.</p>