Use feature detection in place of IE UA sniffing

See issue #9.