Lovely ancient jQuery code.