module.exports = Backbone.View.extend({

  className: 'main_price main_wrap',

  initialize: function(){

    var self = this

    self.$el.html(ss.tmpl['main-pairing'].render()).appendTo('.dash .main').addClass('animated fadeInUp')


    self.display_qr();
  },

  clear: function(){

    var self = this

    self.$el.removeClass('animated fadeInUp')
    self.$el.addClass('animatedQuick fadeOutUp')

    setTimeout(function(){

      self.$el.remove()

    }, 500)
  },

  display_qr: function(){
    var self = this

    self.user.create_pairing_token(function(err, token){
      if (err) return alert('Pairing failed: ' + err.message)

      self.user.get_server_address(function(err, address){
        new QRCode(document.getElementById('qrcode'), JSON.stringify({
          token: token,
          trader: address
        }))
      })
    })
  }

})

@@ -532,28 +532,26 @@
 ser.
-create_pairing_token
+get_server_address
 (fun
@@ -561,21 +561,23 @@
 on(err, 
-token
+address
 )%7B%0A     
@@ -604,15 +604,30 @@
 rt('
-Pairing
+Getting server address
  fai
@@ -665,34 +665,36 @@
 lf.user.
-get_server_address
+create_pairing_token
 (functio
@@ -694,35 +694,101 @@
 function(err
+_
 , 
-address)%7B
+token)%7B%0A        if (err_) return alert('Pairing failed: ' + err_.message)%0A
 %0A        new

Fix error handling and call order