Fixed JS error with previous ACF version

https://github.com/elliotcondon/acf-field-type-template/issues/19#issuecomment-43714505
Signed-off-by: Elliot Condon <e@elliotcondon.com>