title: Passing data from one page to another using Node, Express & EJS
body: <p>I've got the following routes set up:</p>
  
  <pre><code>router.get('/', function(req, res) {
      res.render('index', {});
  });
  
  router.post('/application', function(req, res) {
    res.render('application', {twitchLink : req.query.twitchLink});
  });
  </code></pre>
  
  <p>I've got the two views set up properly. </p>
  
  <p>This is what I've got in the 'index' view:</p>
  
  <pre><code>&lt;form class="form-horizontal" action="/application", method="post", role="form"&gt;
      &lt;input type="url" name="twitchLink" required&gt;
      &lt;button class="btn btn-success"&gt;Submit&lt;/button&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Submitting this form does take me to the application view.</p>
  
  <pre><code>&lt;script&gt;var twitchLink = &lt;%- JSON.stringify(twitchLink) %&gt;&lt;/script&gt;
  &lt;script&gt;console.log(twitchLink)&lt;/script&gt;
  </code></pre>
  
  <p>This should log out the link that I submitted, right?
  However, I get these two lines:</p>
  
  <pre><code>Uncaught SyntaxError: Unexpected end of input
  Uncaught ReferenceError: twitchLink is not defined
  </code></pre>