Use global object instead of 'window'.