Express 3.x support

Fixed the stuff for express 3.x.