Update the ontology tree js API