Fixed error on IE8

Error: "'Window.prototype' is null or not an object". Why the hell this has worked in the past I don't know?!