updating couch js for updating