Adding JS for grid filtering logic