update logic for ejs templating
Merge pull request #119 from jamesyothers/master

update logic for ejs templating