Dynamically generate div structure of survey pages

Instead of copying HTML, produce the page skeleton with JS
document.head should work