I have this code that I am using and it works fine in chrome, but in IE, it looks like that onreadystatechenge is not firing.
How do I get this to work cross browser. I
Apparently IE 11 (which I assume is what you are testing is broken) removed script.onreadystatechange in favor of script.onload.
script.onreadystatechange
script.onload
Here is the compatibility for xhr.onload.
Source of IE11 removing it