Fixed JS for setting moved files ids for the form. Select all files input remains checked if it is necessary.