refactoring changed selectowl.scenario.tree.getCurrentIndex() into javascript getter .currentIndex