Fix delete action with JavaScript confirm().