Fixes the Tree View js

The ID selector had an asterisk which caused it to match more than what
we wanted.
Also now I'm showing the branches of the tree that need to be expanded.