ES6ify middleware for koa