Refactor to not use Handlebars as global; getTemplate & getLayout methods