JS: added :last to the selected lookup on tree, where you may have a nested list and all the active nodes are class=selected_class