Add data-attribute to grammar list

Mind doing `element.dataset.grammar = grammarName` instead?