Some golfing and templates

Few bytes less, mostly related to tilde operator.

The `index.html` looks like an Unicode test, including codepoints in range from ASCII special chars to astral plane. It is difficult to edit and track changes. So, I've made a primitive templating script.

Also, I suggest to measure script size in bytes, it is easier _(my editor, SublimeText 2, treats surrogates as separate chars)_ and more common. But, of course, it is up to you to use any unit you pick.