setting up main for ejs