fix/misc

ensure JS tree updates when children add, and other minor tidies