[MRM-383] - Updated javascript function and <c:forEach> loop for different file types in repositoryScanning.jsp