Is there any solution to build **multiple divs with in div** in PURE JavaScript ?

**jQuery version**

```
 for (var i = 1; i <= 3; i++) {
     $('#maindiv').append('<div id="page' + i + '">new divs</ div>')
 }

```

<http://jsfiddle.net/Q6Lnw/2/>