Image / File fields: Update JS to work with older version of repeater field add-on

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