I added the following because I changed this to use a chained `then()` instead of `done()/fail()`, since I wanted to return the resulting promise. Please double-check that I'm correct about this :) - I'm always a little unsure about error handling in jQuery promises vs. Promises/A.