State DOM dependency in a more clear way
Replace amateur regexp-based templates with lodash equivalents