deal with var name changes in wf's js
add support for the recently-added tree token
fix a variable name I missed earlier
update client_version