Filter-sample.js changes