adding JS tree visualization