Adding a fix for node-webkit's 'window'.