add tree js api