Convert filter.js to filter.coffee