Create accelerometer.js