make the download function an actual download in the browser.