Regex bug
I've tried using the script on Codepen and it worked, but when installing it locally the console returned an error.
Uncaught SyntaxError: missing ) after argument list" on line 208
Now the line with the problem is actually the previous one
_tpl = _tpl.replace(/{{i}}/g, this.elementCount);
The browser reads it like
_tpl = _tpl.replace(//g, this.elementCount);
because it's not escaped. It should be
_tpl = _tpl.replace(/\{\{i\}\}/g, this.elementCount);
Thanks for the heads up! Fancy submitting a pull request?
I'm not really that into Github and I don't know how things work around here. Just wanted to report the bug :)
Sure, I'll look at pushing up a fix when I get some time.