title: jquery $.get in localhost not receiving response
body: <p>I'm attempting to make a GET request using jquery to receive a page with a user determined namespace. My index page (in jade) has a text input form this script uses:</p>
  
  <pre><code>script(src="http://code.jquery.com/jquery-1.11.1.js")
  script(type="text/javascript"). 
              $(document).ready(function(){
                  $('form').submit(function(){
                      $.get('http://localhost:3000/chat/' + $('#n').val());
                  });
              });
  </code></pre>
  
  <p>And the app uses a router for all '/chat' requests, so as I understand it, the request url localhost:3000/chat/namespace goes to the router which has the following code:</p>
  
  <pre><code>router.use(function(req, res){
      var namespace = req.originalUrl;
      res.render('../views/chat', {namespace: namespace, pageTitle: 'chatroom'});
  });
  </code></pre>
  
  <p>which then renders another jade file with the user determined namespace. However, submission of the form on the index page just refreshes the index page with the address bar displaying <code>localhost:3000/?</code>. I'm not sure if my syntax is wrong or if there is a deeper problem in what I'm trying to do. I've tried to $.get() other strings such as '/chat'.</p>