Update filters.js

this is a much effective way