Fixed app.locals snippet for express-example app

Update for the current version of express (2.5.8).