tokens: Mastodons lived in herds and were predominantly forest-dwelling animals that lived on a mixed diet obtained by browsing and grazing , somewhat similar to their distant relatives , modern elephants , but probably with greater emphasis on browsing .