fixes to javascript and html autoformatting that breaks toolbars.