Update filters.js

this is a much effective way with new Array()