factor to web and worker, now working
Allow setting paragraph lengths
Add another model