title: Cordova never fires device ready
body: <p>I created a new Cordova 4.0 project, added android platform and added all the core plugins and the following is my index.html file.</p>
  
  <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt;   &lt;head&gt;
      &lt;title&gt;Notification Example&lt;/title&gt;
  
      &lt;script type="text/javascript" charset="utf-8" src="/cordova.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" charset="utf-8"&gt;
  
      // Wait for device API libraries to load
      //
      document.addEventListener("deviceready", onDeviceReady, false);
  
      // device APIs are available
      //
      function onDeviceReady() {
             alert("ready");
      }
  
      // Show a custom alert
      //
      function showAlert() {
          navigator.notification.alert(
              'You are the winner!',  // message
              'Game Over',            // title
              'Done'                  // buttonName
          );
      }
  
      // Beep three times
      //
      function playBeep() {
          navigator.notification.beep(3);
      }
  
      // Vibrate for 2 seconds
      //
      function vibrate() {
          navigator.vibrate(2000);
      }
  
      &lt;/script&gt;   &lt;/head&gt;   &lt;body&gt;
      &lt;p&gt;&lt;a href="#" onclick="showAlert(); return false;"&gt;Show Alert&lt;/a&gt;&lt;/p&gt;
      &lt;p&gt;&lt;a href="#" onclick="playBeep(); return false;"&gt;Play Beep&lt;/a&gt;&lt;/p&gt;
      &lt;p&gt;&lt;a href="#" onclick="vibrate(); return false;"&gt;Vibrate&lt;/a&gt;&lt;/p&gt;   &lt;/body&gt; &lt;/html&gt;
  </code></pre>
  
  <p>But I could never see the device ready firing. Any ideas on what is wrong with the abive snippet ?</p>