add client-side DownloadModal class
move initialisation of map and downloads to classes