Use the right chrome
Find base tags even when not self closing
Do not randomize id just to avoid that an item is not being shown any longer. just redefine the css rule to display it anyway