As an FYI, this block would be a bit simpler with Underscore, e.g.

    data.results = _(data.results).filter(function() { /* ... */ });