fix broken js on set-hierarchy page