```coffeescript
setup500px = () ->
  _500px.init {
    sdk_key: 'fdcaea5c35561158c89cf39bf30efc827d7d88cd'
  }

  _500px.on 'authorization_obtained', () ->
    $('#not_logged_in').hide()
    $('#logged_in').show()

    _500px.api '/users', (response) ->
      me = response.data.user;
      $('#username').html(username)

  _500px.on 'logout', () ->
    $('#not_logged_in').show()
    $('#logged_in').hide()

  _500px.getAuthorizationStatus()

  $('#oauth-login').click _500px.login
  $('#oauth-logout').click _500px.logout

$ ->
  setup500px()
```

Fix missing username and add ref
user
```coffeescript
# Taken from https://github.com/500px/500px-js-sdk/blob/master/examples/example1.html
setup500px = () ->
  _500px.init {
    sdk_key: 'fdcaea5c35561158c89cf39bf30efc827d7d88cd'
  }

  _500px.on 'authorization_obtained', () ->
    $('#not_logged_in').hide()
    $('#logged_in').show()

    _500px.api '/users', (response) ->
      me = response.data.user;
      $('#username').html(me.username)

  _500px.on 'logout', () ->
    $('#not_logged_in').show()
    $('#logged_in').hide()

  _500px.getAuthorizationStatus()

  $('#oauth-login').click _500px.login
  $('#oauth-logout').click _500px.logout

$ ->
  setup500px()
```
assistant