count line-breaks and add them to character-counter

The javascript character counter code was counting '/n' in the string as a single character as thus allowing a string greater in size than expected to the database.

This code simply adds and extra count per line break to the total.