Solve a multitab bug and move the JS to the footer - refs BT#8193