You follow jquery code style right? Than i would change
```js
message.split(/\n/)
```
to
```js
message.split( /\n/ )
```
and 
```js
function ( line, index ) {
```
to 

```js
function( line, index ) {
```