Accelerometer phonegap