factored out the delete javascript into js/copow.js used in update_form.html