Fix the user agent parser for Opera 15 and IE 11

For both Opera 15 and IE 11, it can't detects the right user agent by the traditional means. Basically this change is same approach with the parser of YUI core.