cleanup examples

use the shorter/prefered `$.Deferred(function)` notation in examples.