use handlebars.js to cleanup codes