Fixing messagery javascript.
Merge pull request #546 from ngodfraind/bugfix

Fixing messagery javascript.