String.prototype.split(), while, Array.prototype.some(), Array.prototype.filter(), String.prototype.slice(), Array.prototype.splice()
// call `.split()` of `largeBlockOfText` with `RegExp` `/\r|\n/`
var arr = largeBlockOfText.split(/\r|\n/);
// while `arr` has element where `.length` greater than `50`
while (arr.some(function(v) {return v.length > 50})) {
// filter element in `arr` where element has `.length` greater than `50`
var j = arr.filter(function(val, key) {
return val.length > 50
})[0]
// get index of `j` within `arr`
, index = arr.indexOf(j)
// text of `j`
, text = j
// index to insert block of 50 characters of `text`
, i = 1;
while (text.length) {
// insert block of 50 characters from `text` at `index` + 1
arr.splice(index + i, 0, text.slice(0, 50));
// reset `text`
text = text.slice(50, text.length);
// increment `i` : `index`
++i;
}
// remove `j` , reset `i`
arr.splice(index, 1); i = 1;
}