Mostly stop polluting the window namespace in tree_editor.js