Changes to htmlForm.js to work with htmlForm.js introduced in the core HFE module by HTML-114