```coffeescript
window.Messages = new Meteor.Collection('messages')

Template.chatTemplate.messages = ->
    Messages.find()

$ ->
    $('#enter').submit( ->
        Meteor.subscribe('channel', $('#channel').val(), $('#user').val())
    )
```

Fix submitting will a new page
user
```coffeescript
window.Messages = new Meteor.Collection('messages')

Template.chatTemplate.messages = ->
    Messages.find()

$ ->
    $('#enter').submit( (e) ->
        e.preventDefault()
        Meteor.subscribe('channel', $('#channel').val(), $('#user').val())
    )
```
assistant