Fixed JS bug causing duplicated sub fields to disappear

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