Simple helper to solve bad practice of inserting element one by one into DOM instead of generate all and insert once
Download the production version or the development version.
<script src="jquery.js"></script>
<script src="dist/map-append.min.js"></script>
<script>
jQuery(function($) {
$('#container').mapAppend(collection, function(val, key){
return '<div>' + val + '</div>';
});
});
</script>