pagination object now attached to res.locals for easy use in express templates