Add jsDoc comments to filters.js