returning generator function

Koa expects this (API changed ?)
Merge pull request #2 from G3z/patch-1

returning generator function