passing posts to views through ejs