base js work for filter system