update cordova.js with plugin integration