Reverted back to old filter.js because the new version includes breaking changes.