Update server code to run on express 4