Add a check for cordova.js being loaded multiple times