Changed frameDocument to document, fixing retreival of div2