Fixed error in messages.js.coffee