added delete function to crud.js