This test is done a few times. 
As we have swapped in and out different solutions, (AODACC, Bodacc, GoGoDuck, Dodacc) they are probably best separated out into files and can be modded independently.
The switching can be done in DownloadPanelItemTemplate.js