let Kite
const BaseKite = require('./base')
const Promise = require('bluebird')

module.exports = Kite = (() => {
  Kite = class Kite extends BaseKite {
    static initClass() {
      this.prototype.expireToken = Promise.promisify(this.prototype.expireToken)
    }

    tell(method, params, callback) {
      return new Promise((resolve, reject) =>
        super.tell(method, params, (err, result) => {
          if (err) {
            return reject(err)
          }
          return resolve(result)
        })
      ).nodeify(callback)
    }

    ready(callback) {
      return new Promise(resolve => super.ready(resolve)).nodeify(callback)
    }
  }
  Kite.initClass()
  return Kite
})()

@@ -1,13 +1,4 @@
-let Kite%0A
 cons
@@ -69,195 +69,38 @@
 ')%0A%0A
-module.exports = Kite = (() =%3E %7B%0A  Kite = class Kite extends BaseKite %7B%0A    static initClass() %7B%0A      this.prototype.expireToken = Promise.promisify(this.prototype.expireToken)%0A    %7D%0A%0A  
+class Kite extends BaseKite %7B%0A
   te
@@ -122,34 +122,32 @@
 ms, callback) %7B%0A
-  
     return new P
@@ -180,18 +180,16 @@
 %3E%0A      
- 
- 
 super.te
@@ -234,18 +234,16 @@
         
-  
 if (err)
@@ -247,34 +247,32 @@
 rr) %7B%0A          
- 
- 
 return reject(er
@@ -282,18 +282,16 @@
         
-  
 %7D%0A      
@@ -284,34 +284,32 @@
       %7D%0A        
- 
- 
 return resolve(r
@@ -325,15 +325,11 @@
     
-  
 %7D)%0A
-  
     
@@ -352,17 +352,13 @@
 ck)%0A
-  
   %7D%0A%0A
-  
   re
@@ -373,26 +373,24 @@
 back) %7B%0A    
-  
 return new P
@@ -453,50 +453,99 @@
 )%0A  
-  %7D%0A  %7D%0A  Kite.initClass()%0A  return
+%7D%0A%7D%0A%0AKite.expireToken = Promise.promisify(BaseKite.prototype.expireToken)%0A%0Aexport default
  Kite%0A
-%7D)()%0A

simplify Kite class definition