implemented some templating using jade