Iterating through DOM and creating filelist entries.