add deleteProject function in js