Sources: How to create an array from .each loop with jQuery et How to generate UL Li list from string array using jquery?.