Added ajax call to couch doc.