Divida todos os N personagens JS
var str = 'abcdefghijkl';
console.log(str.match(/.{1,3}/g));
Clean Caterpillar
var str = 'abcdefghijkl';
console.log(str.match(/.{1,3}/g));