title: Ajax being called twice on setInterval
body: <p>I'm doing ajax calls in a specific time interval using javascript setInterval function however the ajax code is being executed twice, so I'm getting the same response twice and I have no idea why this is happening, here's the code:</p>
  
  <pre><code>        setInterval(function () {ajaxCall();},15000);
  
          function ajaxCall(){
              var uri = "url here";
              $.ajax({
              type: "GET",
              url: uri,
              dataType: "jsonp",
              success: function(response){
                      console.log(response);
                      var txt = $("#textarea");
                      txt.val( txt.val() + response.user + " (" + response.time + ") &gt; " 
                      + response.text + '\n');
                      }
              });
          }
  </code></pre>
  
  <p>Any help would be appreciated.</p>
  
  <p>Thanks</p>