Detect IE10 and IE11
if(/MSIE \d|Trident.*rv:/.test(navigator.userAgent)) document.write('<script src="somescript.js"><\/script>');