fix #141 fix #142 Fix browser sniffing for IE11