adding JS for delete