pull text, class from data attrs