Changed to ejs and prototyped a schema with mongoose