Minor update to messages.js