Rewrite core parts of Menu around the HTMLObject library