Fix usage of res.locals in Express 3.x