JS: added filter for date based on visit dates