window.onload = function () {
var block1 = document.getElementById("block1"),
block2 = document.getElementById("block2"),
text = block1.innerHTML,
pos = text.lastIndexOf(' ', 51);
if (text.length > 50) {
block1.innerHTML = text.substring(0, pos);
block2.innerHTML = text.substring(pos+1);
}
}