fixed res.locals

property res.locals is not a function
Merge pull request #19 from akashkrishnan/patch-1

fixed res.locals