added the update_field_group function to the acf JS object for third party compatibility

Signed-off-by: Elliot Condon <e@elliotcondon.com>
changed js function to event $(document).trigger('acf/update_field_groups');

Signed-off-by: Elliot Condon <e@elliotcondon.com>