Migrate codes for express 4.0