moved the device topo tree into a javascript var for speed