An accelerometer API for the Mobile Web