Different markup per item
When a key matches several elements, they are filled in order before any copies are added. Here the first company gets a featured layout with its logo, and the rest repeat the last item.
Result
Template
Script
The array is the value of the Companies key. Loading it into
$("#directory li") instead would repeat each li separately,
because every element of a jQuery set is loaded with the whole data.