Replace deferred.pipe with deferred.then (jQuery 1.8 Deprecation)

This goes with #4018.

Replace all instance of jQuery `deferred.pipe` with `deferred.then` (http://api.jquery.com/deferred.pipe/)