<div id="icon"></div>
<select id="select" name="threads-icon" class="fa-select"></select>
body {
  text-align: center;
  margin: 10px;
}

.select2,
.select2-container {
	text-align: left;
}

#icon {
  margin: 75vh 0 10px;
}
View Compiled
$.get('https://raw.githubusercontent.com/FortAwesome/Font-Awesome/fa-4/src/icons.yml', function(data) {
  
	var parsedYaml = jsyaml.load(data);
	$.each(parsedYaml.icons, function(index, icon){
    $('#select').append('<option value="fa-' + icon.id + '">' + icon.id + '</option>');
  });
	
	$('#select').select2();
	$("#icon").html('<i class="fa fa-2x ' + $('#select').val() + '"></i>');
});

// Detect any change of option
$("#select").change(function(){
  var icono = $(this).val();
	$("#icon").html('<i class="fa fa-2x ' + icono + '"></i>');
});
Run Pen

External CSS

  1. https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css
  2. https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/css/select2.min.css
  3. https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css

External JavaScript

  1. https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js
  2. https://cdnjs.cloudflare.com/ajax/libs/js-yaml/3.6.0/js-yaml.min.js
  3. https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/js/select2.min.js