converted to express and ejs