Add Accelerometer feature
and reorganise js structure files