
function setupMyCarousel() {
		
	var id_for_output = 'wld-feed', badges_per_pane = 5, number_of_panes = 10;													// please change these for your desired output!
	var counter = 0, pane_counter = 0, max_badges = (badges_per_pane * number_of_panes), str = '<div class="panel">';           // no need to change these
	
	for(i=0; i < max_badges; i++) {
		str += b[i].toString();
		if(counter < (badges_per_pane-1)) counter++;
		else {
			counter = 0;
			str += '</div>';
			pane_counter++;
			if(pane_counter != number_of_panes) str += '<div class="panel">';
		}
	}
	var belt = document.createElement('div');		// create the new belt element
	belt.className = "belt";            			// add the classname for the belt
	belt.innerHTML = str;   						// assign the html generated above
	document.getElementById(id_for_output).appendChild(belt);		// add the belt to the feed item
}