Fix for form JS handling of checkboxes when checked