Improve DataTables JS filter code understandability
I got feedback in !492 (merged) that the DataTables JS filter code we copy-paste could be made easier to understand. I agree with this, and made some changes to the file in the PR. We can make these changes to every filter we have.