Fixed filter() sample code.

The filter() method callback should return true/false, not the actual object.  The existing code technically worked, but was misleading and not ideal.