Fix broken Javascript by HTML Upgrade.