made treeRenderer an object of window so that unit-tests could find it