Added JS install and a GLOBAL accelerometer instance