move frame js
move zoom/drag
move last js
remove labels
add tree flattening code