This does not pass jshint since it came directly out of cordova-js. It is nearly identical to www/FileTransfer.js. I didn't update it because I think it should be easier to just copy over the jshint fixes when they are applied to www/FileTransfer.js.