js/download: Rename textFormats to downloadFormats
js/download: Create file format list on client side

This copies the pattern used in the record citation style selector.