Changed js for table filter