Logging, JS Template

* Less logging
* JS Template; added helper function to ease blending templates based on
custom prefix and suffix for keys (for example {size}, instead of
$nxs_size).