updates for koa and js 0.11