js/bundle.js, this code in your entry HTML file will wait for the
deviceready event before loading it on Cordova, or otherwise go ahead and load it straight away.
Note that you want to put this script block at the end of your
body (or at least after the
cordova.js script has been loaded).