Deferred should resolveWith obj, not success fn.

You're currently resolving with the `success` function which is never correct. You should be resolving with the same value you're passing to the `success` function right below.