Maybe even

    for i in results.concat(jQuery.trim data) when i

I don't know if leaving out the parens would work:

    for i in results.concat jQuery.trim data when i