Added active class to selected filter. Optimized DOM query for filter option.