Fix Javascript so non-Freebase preview popouts work.

Bug seems to have been accidentally introduced in c8f0e88bd49640ea030f68a4b6e22f4ec9be1eab