Tweak dice code further. #1218
Also use `data` instead of `textContent` as it performs faster.