Fixed the javascript code for messages with return carriges.