just discovered something.
type 

print (tuna);

after document/write(tuna); and see what happens.
The page print window open automatically, i mean by the use of print command.