handlebars: Access has been denied to resolve the property
//Add the following run time options to your code
app.engine("handlebars",exphbs({defaultLayout:"main",runtimeOptions:{allowProtoPropertiesByDefault:true,allowProtoMethodsByDefault:true,},}));