activity as Angular service
totals as a Angular directive
#10077 - scoped directive
#10077 - totals as jQuery plugin