BB10-Cordova/simplexpbeaconplugin/sample/www/js/index.js
function() {
      	$("#btnStartMonitor").click(app.startMonitorMode);
      	$("#btnStopMonitor").click(app.stopMonitorMode);
      	$(document).one("mobileinit", function () {
	        app.receivedEvent('deviceready');
      	});
      	$.getScript('js/jquery.mobile-1.4.4.min.js');
    }
function() {
      	$("#btnStartMonitor").click(app.startMonitorMode);
      	$("#btnStopMonitor").click(app.stopMonitorMode);
      	$(document).one("mobileinit", function () {
	        app.receivedEvent('deviceready');
      	});
      	$.getScript('js/jquery.mobile-1.4.4.min.js');
    }
deviceready Event Handler  The scope of 'this' is the event. In order to call the 'receivedEvent' function, we must explicity call 'app.receivedEvent(...);'