title: Uncaught TypeError: $.get(...).then is not a function
body: <p>Here is my code  .. I am recieving error in console as   Uncaught TypeError: $.get(...).then is not a function..error is in 18 th line</p>
  
  <pre><code>&lt;button class="btn btn-primary" id="requestButton"&gt;HTTP Request&lt;/button&gt;
  &lt;ul id="myList"&gt;&lt;/ul&gt;
  &lt;script type="text/javascript"&gt;
      var ulElm = document.querySelector("#myList");
      var first = false;
      var chatList;
      function updateChat() {
          console.log("update Chat called");
          $.get("http://projecttester.16mb.com/makejson.php")
          .then(function(data) {//ERROR IS IN THIS LINE
              if(!first) {
                  chatList = JSON.parse(data);
                  chatList.forEach(function(item) {
                      var liElm = document.createElement('li');
                      liElm.innerHTML = item.Message;
                      ulElm.appendChild(liElm);
                  });
  &lt;/script&gt;
  &lt;/body&gt;
  </code></pre>