all code from last week added
all code working with AJAX call to couchapp