component building middleware for node/connect/express