edina/fieldtrip-cobweb-project#10: rewrite download to use one function for downloading