move handlebars code to activity.js