Minor fixes to window.open() stub.