increasing filter js functionality