adding support for ejs server side rendering