pass global vars through middlewave and res.locals