function updateShow(){ jQuery(document).ready(function ($) { $.getJSON('https://broadcast.truthcdn.com/play-currentshow.lasso?station=WTRU', function (data) { $('.showName').html(data.name); $('.showLink').attr("href",("/show/" + data.slug +"/")); $('.showHost').html(data.host); $('.showDesc').html(data.description); $('.showIMG').attr("src",data.imgurl); $('.showMorePic').attr("href",("/show/" + data.slug +"/")); }); }); }; updateShow(); setInterval(function(){ updateShow(); }, 5000 );