It might be better if you could use the List template like the one on found on the Github plugin (https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/share/spice/github/github.js#L15). Here's a link to the docs for more details: https://dukgo.com/duckduckhack/spice_templates_overview.

I don't think it would be a big change to the actual size of the code, but it might be easier to change things in the future (since the HTML is uniform across plugins) if you do that. :)