added javascripts for delete