An alternative solution to a problem when Safari does not support the download attribute