title: Nothing happens on button click
body: <p>I'm fairly new to Cordova, and I'm trying to create a quick app that uses the device-motion plugin (accelerometer). I created a button in the index.html file which is supposed to make the X, Y, Z stuff pop up in an alert box, but the button does not appear to be doing anything.</p>
  
  <p>Javascript stuff:</p>
  
  <pre><code>bindEvents: function() {
      document.addEventListener('deviceready', this.onDeviceReady, false);
      document.getElementById("btnClick").addEventListener("click", clickbtn);
  },
  
  function clickbtn(){    
        alert('Acceleration X: ' + acceleration.x + '\n' +
        'Acceleration Y: ' + acceleration.y + '\n' +
        'Acceleration Z: ' + acceleration.z + '\n' +
        'Timestamp: '      + acceleration.timestamp + '\n');
  }
  </code></pre>
  
  <p>HTML:</p>
  
  <pre><code>&lt;div class="app"&gt;
          &lt;h1&gt;Apache Cordova&lt;/h1&gt;
          &lt;button class="ui-btn" id="btnClick" &gt;Get location&lt;/button&gt; &lt;br/&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Is there something I'm doing wrong? (Alternatively, is there a way I can see what happens when the button gets pressed?)</p>