add js tree