JS filter function support.