Be aware. Working with the DOM means, the client has to do the work. Doing several changes to the DOM could lead us to several performance issues.
The ideal is, do not modify the DOM. If you really need to do this. Find the way to do the less changes to the DOM.
The piece of code you provide us have the possibility to be improved.
In your code, you are using a loop. 12 times the DOM would change. These is far away of be a good practice.
A better approach is to write the DOM only 1 time. In this scenario you can easily achieve adding two lines of code.
From this (12 DOM changes):
for(var numCols = 1; numCols <= 12; numCols++){
document.write(
"<div class='row'>" +
"<div class='well text-center col-lg-" + [numCols] + "'>" + ".col-lg-" + [numCols] + "</div>" +
"</div>"
);
}
To this (1 change to the DOM):
var newHtml = '';
for(var numCols = 1; numCols <= 12; numCols++){
newHtml+= "<div class='row'>" +
"<div class='well text-center col-lg-" + [numCols] + "'>" + ".col-lg-" + [numCols] + "</div>" +
"</div>";
}
document.write(newHtml);