updated cordova.js to include proper plugin loading