code: function(){
  		var onpresent = null;
  		Object.defineProperty(this, 'onpresent', {
  			get: function () {
  				return onpresent;
  			},
  			set: function(value){
  				if (typeof value == 'function' || typeof value == 'undefined' || value == null) {
  					onpresent = value;
  					if (onpresent) {
  						jsInterface.setOnPresent();
  					}
  				};
  			}
  		});
  	}
docs: /*
  This function acts as delegate of all Presentation API calls to Android using the NavigatorPresentationJavascriptInterface Object