add tree search javascript openAll etc

add tree search javascript openAll etc