Fix build

Failures were from order-dependence on generated HTML's attributes