Migrating from express2.x to express3.x