Add typeof check to data_download method, so if we want to download the
same dataset again, we do not lose our checked radio buttons
Update parse_csv function to avoid reading lines[0][0] if we select an empty dataset. So the alert message is properly displayed