code: function(ndefMessageAsString) {
      "use strict";
      var ndefMessage = JSON.parse(ndefMessageAsString);
      cordova.fireDocumentEvent("ndef", {
          type: "ndef",
          tag: {
              ndefMessage: ndefMessage
          }
      });
  }
docs: takes an ndefMessage from the success callback and fires a javascript event