fixed #2459: because the interval attribute of DeviceMotionEvent is read only and different on every browser. the setAccelerometerInterval function is invalid.  so we fixed this bug by calculating interval values.