Added Filter Javascript functionalities