app.locals fix for express 4.x