Fixed #114. Better mechanism for menu sniffing. Added IE hack for IE11 as well.