js and html files to filter out results depending on the text