load cordova.js first