Extracted handlebars templates.
Added jasmine tests.