Change word-break with JavaScript

Click the "Try it" button to change the let the DIV element break a text between any two letters:

Thiscouldbeaninsainlylargeword