Zapatec Javascript Tree