Fixed the javascript code for messages with return carriges.

Thanks.

Bye.