Basic accelerometer object

Basic accelerometer object that used the basic of the cordova framework
and a extra function that checks the movement direction