fixed the device orientation detection (yes, another typeof mistake) and added the value in the devicetest example