Koa middle to uglify javascript