added contentWindow property
Fixes #1