title: JQuery append not working in a very simple case
body: <p>I am learning node.js and socket.io and I am using the example. All is working but 
  all the jquery appends are not working, even simple ones like</p>
  
  <pre><code>$("#messages").append("&lt;p&gt;someone said: &lt;/p&gt;");
  </code></pre>
  
  <p>Jquery is loaded:</p>
  
  <pre><code>$.fn.jquery
  "1.11.1"
  </code></pre>
  
  <p>This is entire index.html:</p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html ng-app="chatapp"&gt;
      &lt;head&gt;
       &lt;title&gt;Socket.IO chat app&lt;/title&gt;
       &lt;style&gt;
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { font: 13px Helvetica, Arial; }
        form { background: #000; padding: 3px; position: fixed; bottom: 0; width: 100%; }
        form input { border: 0; padding: 10px; width: 90%; margin-right: .5%; }
        form button { width: 9%; background: rgb(10, 24, 255); border: none; padding: 10px; }
        #messages { list-style-type: none; margin: 0; padding: 0; }
        #messages li { padding: 5px 10px; }
        #messages li:nth-child(odd) { background: #eee; }
          &lt;/style&gt;
      &lt;/head&gt;
      &lt;body&gt;
       &lt;ul id=messages"&gt;Messages: &lt;/ul&gt;
       &lt;form action=""&gt;
        &lt;input id="m" autocomplete="off" /&gt;
        &lt;button&gt;Send&lt;/button&gt;
       &lt;/form&gt;
  &lt;script src="/socket.io/socket.io.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="https://code.jquery.com/jquery-1.11.1.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script&gt; $(document).ready(function(){ $("#messages").append("&lt;p&gt;Initializing... &lt;/p&gt;"); });&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
   $(function () {
      var socket = io();
      $('form').submit(function(){
          socket.emit('chat message', $('#m').val());
          $('#m').val('');
          return false;
      });
      socket.on('chat message', function(msg){
          console.log('incoming: ' + msg);
          $("#messages").append("&lt;p&gt;someone said: &lt;/p&gt;");
          console.log('second append ');
          $('#messages').append($('&lt;li&gt;&lt;/li&gt;').text("hola"));
      });
  socket.on('connection', function() {
      console.log("client connected");
  });
  
  socket.on('connect_error', function(err) {
      console.log("client connect_error: ", err);
  });
  
  socket.on('connect_timeout', function(err) {
      console.log("client connect_timeout: ", err);
  });
  });
  &lt;/script&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>See that</p>
  
  <pre><code>&lt;script&gt; $(document).ready(function(){$("#messages").append("p&gt;Initializing... &lt;/p&gt;"); });&lt;/script&gt;
  </code></pre>
  
  <p>is also not showing.</p>
  
  <p>Any idea?</p>