Fix minification of IE detects

Most JavaScript minifiers have trouble handling conditional comments
correctly. We can avoid having conditional comments stripped by
wrapping the detection code in strings and executing via Function().