cleanup examples

use the shorter/prefered `$.Deferred(function)` notation in examples.
fixed `filtered` to no longer leak into global namespace.