Trouble with CloudKit JS

I followed the steps described in the tutorial # CloudKit JS Tutorial for iOS.
But I keep getting

"Uncaught ReferenceError: Unable to process binding "text: function(){return fields.score.value }“Message: fields is not defined”

in the browser console.
I realize the tutorial is five years old, and I updated CloudKit.configure following instructions in Apple’s Developer documents.
Does anyone know if there are other places I need to modify?
I plan to keep working on this and will share any discoveries, but if anyone can give me a head’s up I will be grateful. Thanks