fix ajax bug
log site 500 error
move from using ejs-locals to express-ejs-layouts