With that I mean in a template or in an html file. The response you get from the server could be gathered from a template. That's what I mean. It's not good to bury the responses in the Javascript. I think the best solution would be to have this stuff already in the HTML and hidden, and only show them and hide them with Javascript.