code: function setOrientation(desiredOrientation, orientationOptional) {
      g.orientation = desiredOrientation;
      if (orientation.canOrient()) {
        resetOrientation();
      } else {
        var orient = g.orientation;
        if (orientationOptional) {
          orient = "none";
        }
        setOrientationHTML(orient);
      }
    }
docs: Sets the orientation of the screen. Doesn't work on desktop
  nor iOS unless in app.
  @param {string} [desiredOrientation] The orientation. Valid options are
  
  "portrait-primary"    // normal way people hold phones
  "portrait-secondary"  // upsidedown
  "landscape-primary"   // phone turned clockwise 90 degrees from normal
  "landscape-secondary" // phone turned counter-clockwise 90 degrees from normal
  "none" (or undefined) // unlocked
  @param {bool} [orientationOptional]