Fix JS CouchDB example error