Issue #415: Deleting files does work

As of jQuery 1.7`deferred.isRejected()` has been deprecated. Need to use `deferred.state() ` instead.