title: Why won't my JS modify this html?
body: <p>I'm making a basic Rock, Paper, Scissors Game, and it works so far, but I REALLY want it to take in the userInput for "name" and then greet the user like "welcome, name"</p>
  
  <p>But its not working Below is the code with the parts that aren't working highlighted</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;script src="myJS.js"&gt;&lt;/script&gt;
      &lt;link rel="stylesheet" type="text/css" href="style.css"&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;!--right here--&gt;
      &lt;p id = "Name"&gt; Welcome, Name&lt;/h1&gt;
  &lt;!--ends here--&gt;
      &lt;a href="http://cooltext.com"&gt;&lt;img src="http://images.cooltext.com/3974705.png"
       width="1056" height="81" alt="Rock Paper Scissors" /&gt;&lt;/a&gt;
  
      &lt;button onclick="RPS()" &lt;a href="#" class="style" &gt;Click Me To Play!&lt;/a&gt;&lt;/button&gt;
      &lt;p&gt;&lt;br&lt;br&gt;&lt;/p&gt;
      &lt;p id="counter"&gt;You won 0 times!&lt;/p&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p> </p>
  
  <p>And here's the JS</p>
  
  <pre><code>var timesWon = 0;
  //below = part that won't work//
  //check PLEASE
  var name = "Person";
  name = prompt("What's your name?");
  document.getElementById("Name").innerHTML = "Welcome, "+name + "!";
  document.write(name);
  //END OF UNWORKING PART
  var counter = 0;
  function RPS()
  {
       var userChoice = prompt("So, "+ name + ", rock, paper, or scissors?        (All LowerCase Please!)");
  var computerChoice = Math.random();
  var opposition = "";
  
  if(computerChoice &gt; 0.67)
  {
      opposition  = "rock";
  
      if(userChoice == ("rock"))
      {
          alert("you tied!");
      }
      else if(userChoice == "paper")
      {
          alert("you won!");
          counter++;
          document.getElementById("counter").innerHTML = "You won "+counter + " times";
      }
      else if(userChoice ==("scissors"))
      {
          alert("you lost!");
      }
  }
  else if(computerChoice &gt; 0.34)
  {
      opposition  = "paper";
  
      if(userChoice == ("rock"))
      {
          alert("you won!");
          counter++;
          document.getElementById("counter").innerHTML = "You won "+counter + " times";
  
      }
      else if(userChoice == "paper")
      {
          alert("you tied!");
      }
      else if(userChoice ==("scissors"))
      {
          alert("you lost!");
      }
  }
  else
  {
      opposition  = "scissors";
  
      if(userChoice == ("rock"))
      {
          alert("you lost!");
      }
      else if(userChoice == "paper")
      {
          alert("you won!");
          counter++;
          document.getElementById("counter").innerHTML = "You won "+counter + " times";
  
      }
      else if(userChoice ==("scissors"))
      {
          alert("you tied!");
      }
      else 
      {
          alert("Invalid Input");
      }
  }
  
  }
  </code></pre>