Refactored handlebars templates and javascript into separate files.