window is now set in the constructor
Merge pull request #4 from Financial-Times/init

window is now set in the constructor