title: Communication between an express node server and its displaying html
body: <p>Really fast, this question may have already been asked, but I am not totally clear on the terminology and have had no success when searching for a solution.</p>
  
  <p>I am attempting to create a simple web application that can receive get and post requests. Then, I would like to take the information I receive from these requests and use them in a javascript file embedded in html that is displayed. I think it may be more clear with code. This is my app.js:</p>
  
  <pre><code>var express = require('express');
  var app = express();
  var assert = require('assert');
  
  
  
  app.use(express.static('javascript'));
  app.get('/', function(req, res) {
      res.render('index.jade');
  });
  
  app.listen(3000);
  </code></pre>
  
  <p>I would then like to be able to take information received from a get or post request, specifically in JSON format, and then be able to use it in javascript that I have linked to index.jade. To make matters slightly more confusing in index.jade the only line is:</p>
  
  <pre><code>include map.html
  </code></pre>
  
  <p>So ideally I would be able to get the information to javascript in that html file.</p>
  
  <p>I want to be able to pretty continuously update map.html using javascript based on frequent get and post commands.</p>
  
  <p>This could be a very simple solution, I am pretty new with web application programming in general, and I have been struggling with this problem. Thanks in advance, and ask if you need any clarification.</p>