Rework the organization of download.js
Merge github.com:StellaCannefax/gallery2disk