Added a tree navigation javascript code