Fixed detection of landscape orientation in basic app js.