Update the code to be compliant with ExpressJS 4.0