fix examples for express 4 (separate middleware)

close #1947