Assorted fixes for Internet Explorer 10 + 11

* Update detection code to correctly tag Internet Explorer 11 as IE
* Prevent focus wars (especially prevalent in Internet Explorer)
Mini improvement would be checking for `trident` first, hoping more people use recent browsers. But then I wonder if it is not enough to only grep for `trident`, as this should be always present, no? At least I get that impression from http://msdn.microsoft.com/en-us/library/ie/ms537503%28v=vs.85%29.aspx#TriToken