added accelerometer in plugin.js