Fix JS for multiple uploads.