Updated FakeWindow to have a Document property that can create text node...

Updated FakeWindow to have a Document property that can create text nodes and elements.

This commit should address all what is needed to fix issue #81