for some reason $.browser is sometimes not defined