5e Quick Character Creator

HTML

<p>You're a...</p>
<p id="alignment"></p>
<p id="race"></p>
<p id="class"></p>
<p id="bg"></p>
<p id="advbg"></p>
<p id="points"></p>

JavaScript

//Based off of the Quick Character Creator in Unearthed Arcana

var alignments = ["Lawful Good", "Neutral Good", "Chaotic Good", "Lawful Neutral", "Neutral", "Chaotic Neutral"];

var backgrounds = ["Acolyte", "Criminal", "Folk Hero", "Noble", "Sage", "Soldier"];

var advBackgrounds = ["Acolyte", "Acolyte", "Charlatan", "Criminal", "Criminal", "Entertainer", "Folk Hero", "Folk Hero", "Guild Artisan", "Guild Artisan", "Hermit", "Noble", "Outlander", "Outlander", "Sage", "Sailor", "Sailor", "Soldier", "Soldier", "Urchin"];

var proficiencies = [
"Acrobatics", "Animal Handling", "Arcana", "Athletics", "Deception", "History", "Insight", "Intimidation", "Investigation", "Medicine", "Nature", "Perception", "Performance", "Persuasion", "Religion", "Sleight of Hand", "Stealth", "Survival", "Carpenter’s tools", "Thieves’ tools"];

var classes = ["Cleric", "Cleric", "Fighter", "Fighter", "Rogue", "Wizard"];

var scoreArrays = ["18, 14, 12, 8, 8, 6", "16, 14, 14, 10, 10, 8", "16, 16, 12, 10, 8, 8", "16, 12, 12, 12, 10, 8", "14, 14, 12, 12, 12, 12", "14, 14, 14, 12, 12, 10"];

var races = ["Hill dwarf", "Mountain dwarf", "High elf", "Wood elf", "Lightfoot halfling", "Stout halfling", "Human", "Human", "Human", "Human", "Human", "Human"];

function d6()
{
		var theUrl = "https://www.random.org/integers/?num=1&min=1&max=6&col=1&base=10&format=plain&rnd=new";
    var xmlHttp = new XMLHttpRequest();
    xmlHttp.open( "GET", theUrl, false ); // false for synchronous request
    xmlHttp.send( null );
    return xmlHttp.responseText;
}

function d12()
{
		var theUrl = "https://www.random.org/integers/?num=1&min=1&max=12&col=1&base=10&format=plain&rnd=new";
    var xmlHttp = new XMLHttpRequest();
    xmlHttp.open( "GET", theUrl, false ); // false for synchronous request
    xmlHttp.send( null );
    return xmlHttp.responseText;
}

function d20()
{
		var theUrl = "https://www.random.org/integers/?num=1&min=1&max=20&col=1&base=10&format=plain&rnd=new";
    var xmlHttp = new...