javascript updates for search filter bar