Parse lines of text to chunks of messages according to the max length of each chunk View Source string/parseLinesToChunks.js, line 12