Use window.location.origin for VPN endpoint URL
HTML5 file saving shim