translating hogan.js into dojo module