You need a font containing Unicode dice characters to see this demonstration as intended. One such font is Code2000. It has been designed to work with font smoothing (anti-aliasing) and may look ugly without it.
View the source code of this page to see how the demo has been implemented. The JavaScript code is directly embedded into the HTML document.