I feel using [HTML `<template>`](http://www.html5rocks.com/en/tutorials/webcomponents/template/) would be a better way than using HTML code as template string as done [here](https://github.com/parishod/viewer-api/blob/d3e1446406688539ddc1004bea3ac2bf83e3cc2b/js/settings.js#L17).