title: Update data from API every second
body: <p>I'm currently working for a school project where I'm working with the Spotify API. Now I've got so far that I receive the current song someone is listening to right now.</p>
  
  <p>But the problem is, that information is only received once the site has been refreshed or opened, but I want it to keep refreshing every second (without refreshing the whole page) so it's up to date with the listener. Does anyone here have any idea on how I can accomplish that? </p>
  
  <p>This is the AJAX request I'm using (I'm not sure if it's useful or anything)</p>
  
  <pre><code>$.ajax({
      url: 'https://api.spotify.com/v1/me/player/currently-playing',
      headers: {
        'Authorization': 'Bearer ' + access_token
      },
      success: function(response) {
        userInfoPlaceholder.innerHTML = userInfoTemplate(response);
          console.log(response);
        $('#login').hide();
        $('#loggedin').show();
      }
  });  
  </code></pre>
  
  <p>If there is any other code that I need to post in order to help, please let me know!</p>