I was serious.
Writing javascript whose sole purpose is to create create something you can more easily create is straight html is not a good way to build a web page. Yes, you could use javascript to write some variable content to an area, but not to write your basic html and layout divs.

PS the reset seems to be lacking a closing } , but I'm assuming that was just a typo here and it is correct on the actual web page.