created js tree to keep track of tabs