Better handling of device events. Use HTML5 DeviceMotion API instead of DeviceOrientation.