added templating with mustache.js