fixed delete form filter function in custom js