Added the window document to entity manager tryRenderToElement
Merge pull request #134 from iclems/fix_entity_document

Added the window document to entity manager tryRenderToElement