Update filter.js

Testing a timeout approach for text searching.