```coffeescript
$(document).on "change", "#group-avatar-form", ->
  reader = new FileReader()
  reader.onload = ->
    $("#group-avatar").attr "src", reader.result
  reader.readAsDataURL this.files[0]
```