title: PhoneGap NFC reader on Android detecting tag but not displaying content on screen
body: <p>I am trying to develop a program using PhoneGap. I would like to scan and display the tag ID from a scanned card.</p>
  
  <p>When the app is built and deployed through build.phonegap.com and comes into contact with a tag the device vibrates but nothing shown on screen. Can anyone tell me what I'm doing wrong?</p>
  
  <pre><code>function ready() {
  
      function onNfc(nfcEvent) {
  
          var tag = nfcEvent.tag;
          var tagId = nfc.bytesToHexString(tag.id);
          navigator.notification.alert(tagId);
          var y=document.getElementById("rand");
          y.innerHTML = tagId;
  
      }
  
      function win() {
          console.log("Listening for NFC Tags");
      }
  
      function fail(error) {
          alert("Error adding NFC listener");
      }
  
  
      nfc.addTagDiscoveredListener(onNfc, win, fail);
  }
  
  function init() {
      document.addEventListener('deviceready', ready, false);
  }
  </code></pre>
  
  <p>HTML: </p>
  
  <pre><code>&lt;!DOCTYPE HTML&gt;
  &lt;html&gt;
    &lt;head&gt;
      &lt;meta name="viewport" content="width=320; user-scalable=no" /&gt;
      &lt;meta http-equiv="Content-type" content="text/html; charset=utf-8"&gt;
      &lt;title&gt;Scan NFC&lt;/title&gt;
        &lt;link rel="stylesheet" href="master.css" type="text/css" media="screen" title="no title" /&gt;
        &lt;script type="text/javascript" charset="utf-8" src="phonegap-1.0.0.js"&gt;&lt;/script&gt;
        &lt;script type="text/javascript" charset="utf-8" src="phonegap-nfc-0.4.1.js"&gt;&lt;/script&gt;
        &lt;script type="text/javascript" charset="utf-8" src="main.js"&gt;&lt;/script&gt;
    &lt;/head&gt;
    &lt;body&gt;
   &lt;p&gt;Please scan NFC tag&lt;/p&gt;
   &lt;p id="rand"&gt;&lt;/p&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>