Dev: Refactor the filtering HTML creation function - save 138 bytes on
file size