fix ejs error in main.coffee