fix in case $.browser doesn't exist