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.

Javascript stuff:

```
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');
}

```

HTML:

```
<div class="app">
        <h1>Apache Cordova</h1>
        <button class="ui-btn" id="btnClick" >Get location</button> <br/>
</div>

```

Is there something I'm doing wrong? (Alternatively, is there a way I can see what happens when the button gets pressed?)