Host/edit JS doesn't respect @host.type_changed?
We've added type_changed? to the new_record? tests to allow the Host form to refresh when a Hostgroup is selected for Discovered Hosts being provisioned. This change needs to be reflected in the JS.
Fixes #2641 - Add type_changed check to JS to allow form to refresh when provisioning a discovered host