(function($){
  var moreMusicAnchorTagID;  
  var aboutItems = $('#more-about-artist li').size(); 
  var htmlBlock; //holds html block 

  //CHECK SIZE OF FEED
  if ( aboutItems > 0) {
	  $('#more-about-artist li').each(function(index) {

		//GET THE ANCHOR TAG ID AND COPARE IT TO THE LIST OF ITEMS THAT SHOULD NOT DISPLAY ON THE SITE, UPDATING THE CSS FOR EACH ITEM
		var moreMusicAnchorTagID = $(this).children().attr('id');	
		if (moreMusicAnchorTagID == 'artist' || moreMusicAnchorTagID == 'videoPlaylists' || moreMusicAnchorTagID == 'songs' || moreMusicAnchorTagID == 'audioPlaylists' || moreMusicAnchorTagID == 'albums') {
			$(this).remove();
			aboutItems = aboutItems - 1 ;
		}
  	  });
  }
  
  //HIDE THE BLOCK OF CODE IF THERE ARE ZERO ELEMENTS TO DISPLAY, ELSE DISPLAY BLOCK
  if( (aboutItems) == 0) {
		$('#more-about-artist').remove();
  }
  else{ $('#more-about-artist').css('display', 'block'); }
  
  
  //CAPITALIZE ALL TEXT WITHIN SPAN TAGS IN THE MODULE
  $('.more-about-artist-title span, #more-about-artist li a span').each(function(index) {
	var textValue = $(this).text();
	textValue = textValue.replace(/\+/g," ");
        $(this).replaceWith(textValue);
  });
  
  //MOVE BLOCKS OF CODE 
  htmlBlock = $('<div>').append($('#more-about-artist').clone()).remove().html();
  $('#more-about-artist').remove();
  $('#more-info').prepend(htmlBlock);


})(jQuery);