Fix handling of file download in IE11.

doc.location.href is not honored as expected by IE.

Signed-off-by: AndreaCuneo <andrea.cuneo@ark-energy.eu>