Working js tree