Fixed JS bug causing sub fields to not save

https://github.com/AdvancedCustomFields/acf5-beta/issues/135
Signed-off-by: Elliot Condon <e@elliotcondon.com>