code: function NavigatorPresentation() {
      // In case of mirroring, display the following placeholder page
      var defaultDisplay = makeAbs("presentation/display.html");
      var c=document.getElementsByTagName("script");
        for(var i=0; i<c.length; i++){
        if (c[i] && c[i].src && c[i].src.indexOf("/cordova.js") != -1){
          defaultDisplay= c[i].src.replace("/cordova.js","/presentation/display.html");
        }
      }
      exec(/*successCallback*/Function, /*errorCallback*/Function, "Presentation", "setDefaultDisplay", [ defaultDisplay ]);}
docs: WebIDL: NavigatorPresentation
  
  interface NavigatorPresentation : EventTarget {
  PresentationSession requestSession(DOMString url);
  attribute EventHandler onavailablechange;
  attribute EventHandler onpresent;
  };
  
  http://www.w3.org/2014/secondscreen/presentation-api/20140721/#NavigatorPresentation_interface
  
  TODO(mla): EventTarget implementation.