window.open from a window being closed