Updated filter.js