Moved download logic to use window.location for the binary download