fix browser capability detection so it doens't throw and startup