removing obsolete code
more cleanup
new UI population / JS execution order

(blink bugfix for several tabs)