Fixed the javascript code for messages with return carriges.
Merge pull request #11 from mdtrooper/master

Fixed the javascript code for messages with return carriges.