checking javascript of filter