Migrating to EJS templating