use the provided cordova.js