I agree it is not nice to have template in js strings, but we have already acceptted this as the convention for lightweight components like this. AS found in https://github.com/guardian/frontend/blob/master/common/app/assets/javascripts/modules/autoupdate.js#L39

Untill we really need a templating solution, I think this is ok as long as they are only a couple of lines.