Adding jQuery-deferred return values to Cordova's File API