changed js tree