Dynamically generate div structure of survey pages

Instead of copying HTML, produce the page skeleton with JS
OK done check it out pls