Replicate DeviceMotion

See
http://www.html5rocks.com/en/tutorials/device/orientation/#toc-usingDM