phonegap.js replaced with cordova.js