Removed duplication in ejs