Fix syntax error in messages.js.