fix accidental global

i love javascript
reflect visibility in all trees
remove extraneous `debugger` lines

for @cscheid
remove obsolete log