Fixing messagery javascript.