JSFiddle - React, Tailwind, and code Playground

HTML

<body>
  Input:<br>
  <textarea id="input">31 66 33 34 55 52 66 66 64 22 53 52 13 54 51 26 62 54 63 62 21 66 66 65 15 16 14 24 55 55 13 44 11 56 22 55 56 24 23 45 53 66 44 24 44 24 33 24 33 22 46 55 44 35 66 35 44 42 63 12 56 66 31 51 66 66 32 66 56 14 31 44 15 66 41 66 65 44 44 31 22 66 46 14 63 26 66 66 41 66 56 65 45 42 42 66 13 66 66 35 12 66 65 44 51 44 24 36 66 32 44 32 66 66 21 51 66 66 31 66 65 66 65 44 42 44 31 62 53 63 63 26 66 66 13 66 31 66 13 66 66 62</textarea><br>
  <button id="decode">Decode</button><br><br>
  Output:<br>
  <textarea id="output"></textarea>
</body>

CSS

textarea {
  width: 100%;
  height: 150px;
}

JavaScript

document.getElementById("decode").addEventListener("click", function() {
	document.getElementById("output").value = decode(document.getElementById("input").value);
});

var fields = ["Go", "Mediterranean Avenue",
				"Community Chest", "Baltic Avenue", "Income Tax",
				"Reading Railroad", "Oriental Avenue", "Chance",
				"Vermont Avenue", "Connecticut Avenue", "Jail",
				"St. Charles Place", "Electric Company", "States Avenue",
				"Virgina Avenue", "Pensilvania Railroad", "St. James Place",
				"Community Chest", "Tennessee Avenue", "New York Avenue",
				"Free Parking", "Kentucky Avenue", "Chance", "Indiana Avenue",
				"Illinois Avenue", "B&O Railroad", "Atlantic Avenue",
				"Ventnor Avenue", "Water Works", "Marvin Gardens", "Jail",
				"Pacific Avenue", "North Carolina Avenue", "Community Chest",
				"Pensilvania Avenue", "Short Line", "Chance", "Park Place",
				"Luxury Tax", "Boardwalk"];        

function decode(input) {
	var counter = 0;
	var output = "";
  input.split(" ").forEach(function(dice) {
		var n1 = parseInt(dice.charAt(0));
  	var n2 = parseInt(dice.charAt(1));
  	counter = (counter + n1 + n2) % fields.length;
  	if (n1 != n2) {
   	 output += fields[counter].charAt(0);
  	}
  });
  return output;
};