Trying to redirect using document.open().write()