hogan.js implementation