for(var i=0;i<=l;i++) { document.getElementById('mp3').innerHTML = data.response[i].artist + ' - ' + data.response[i].title + '<br>'; }