loop through uploaded files

add javascript to loop through uploaded file records
fix loop

fix js loop through uploaded files object