Move form-changed event handling into a separate javascript resource so can be used on any form
Add detect_form_changes.js resource - oops missed it