JavaScript: Don't lex regexes over multiple lines
Rework text reflowing slightly

By default, it now considers line starting with blanks to be
paragraph delimiter. If the buffer's mode contains a
is_paragraph_break(line) method than that is used to determine
whether the line is a paragraph break.