- bugfix in ajax call to delete a document.