Replaced this with window for usage in commonjs loader