fix js for delete button