Update cordova.js

fixed cordova service, thanks to Andrew Allbright!