got ajax function to pull data from couch into my app