text: var app = {
      initialize: function() {
          this.bindEvents();
      },
      bindEvents: function() {
          document.addEventListener('deviceready', this.onDeviceReady, false);
      },
      onDeviceReady: function() {
          app.receivedEvent('deviceready');
      },
      receivedEvent: function(id) {
          console.log('Received Event: ' + id);
          setTimeout(function(){
              location.href="home.html";
          }, 0);
      }
  };
  
  app.initialize();