An excessive attempt at simulating the roll of a die (in HTML5)