add ajax function for couch

App seems to be fully couch compatible.