Have you ever heard about Javascript template engines ?.

I'm implementing with jquery only to create templating html.

Below is the example