clean up app.locals to use res object and make avail to jade