a theme loader middleware of Express/Koa