Awfully perplexed by what it is you're exactly asking.
You should give an example of some input you have and output for starters. In addition be more clear and maybe even format that snippet of what you have.
However, I think what you want is some sort of Javascript Templating System; like HandleBars, EJS and things of that sort. You shouldn't be using an HTML file for data... You probably want to have the data in a JSON file.
Check it out: Handlebars.js: Minimal Templating on Steroids
If you insist on using JQuery I believe they also have a Templating System.