Written fair multiple replace function for JsTemplate.
Improvements in replacement functions of JsTemplate.
Little improvements in JsTemplate.