Polyfill doesn't work in modern browsers (checked IE 10, FF 29, Opera 12)

In modern browser script doesn't work because of IE versions detection. Variable "ie" is undefined for modern browsers and incorrect onreadystatechange initialization is using.