showMessages: attach data attribute to shown messages

This is bikeshed material for https://github.com/behance/be.net/pull/8222