Koa middleware for polyfills