Fixed errorrs in web.js and routes.js, add ejs-locals in setup