filter.js file documentation proof-read