Minify HTML - saves 120 bytes.
Namespace HTML templates in templateCache.
Replace test file's find function with querySelector.
Refactor CSS from templates into SCSS file; minify into dist file.
Add a config option to legends to allow HTML in them.