document `var promises` in filter.js

closes #226