detect landscape portrait mode using javascript Archive