Fixed on-change method in index.html for the download function.