Wt.js: fix ReferenceError (field was used as if it was a var)