Fixed JS bug: field groups not loading dynamically through AJAX

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