Added function to create/append LIs

Added function to create array programmatically, convert array values to
LIs, and add those LIs to the existing UL.