JavaScript - If statement with text doesn't work properly
<p>I am trying to make an if statement based off of user input. I can't seem to get this code to work. It continues to say no, even when I enter 'one', which is supposed to do something different, as you can see in the code snippet. I am running the code in the latest version of Chrome.</p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>var ques = document.getElementById("question");
var ansBox = document.getElementById("ansBox").value;
var submitBtn = document.getElementById("submitBtn");
var isCorrect = document.getElementById("isCorrect");

var num1 = Math.floor((Math.random() * 100) + 1);
var num2 = Math.floor((Math.random() * 100) + 1);
var ans = num1 + num2;

function question() {
  ques.innerHTML = num1 + " + " + num2;
}

function checkAns() {
  if(ansBox.value == "one") {
    isCorrect.innerHTML = "Yes";
  } else {
    isCorrect.innerHTML = "No";
  }
}

question();</code></pre>
<pre class="snippet-code-css lang-css prettyprint-override"><code>body {
  font-family: Arial;
}

div {
  padding-top: 50px;
  text-align: center;
}</code></pre>
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
&lt;html lang="en"&gt;
&lt;head&gt;
  &lt;meta charset="UTF-8"&gt;
  &lt;title&gt;Document&lt;/title&gt;
  &lt;link rel="stylesheet" href="styles.css"&gt;
&lt;/head&gt;

&lt;body&gt;

  &lt;div&gt;
    &lt;h1&gt;Edu Game One&lt;/h1&gt;
    &lt;h3 id="question"&gt;&lt;/h3&gt;
    &lt;input type="text" id="ansBox" /&gt;
    &lt;button id="submitBtn" onclick="checkAns()"&gt;Submit&lt;/button&gt;
    &lt;p id="isCorrect"&gt;&lt;/p&gt;
  &lt;/div&gt;

  &lt;script src="scripts.js"&gt;&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;</code></pre>
</div>
</div>
</p>