js updated to work with more than one filter

jQuery updated to be used with more than one filter in the same page