Build: implement couchDB with ajax.