Uses correct window.open even if surrounding script redefine it