refactor frame to allow override of document.
need to call getDocument
Merge pull request #129 from freedomjs/framedocument

Refactor frame link to allow override of document.