[javascript] JavaScript equivalent to printf/String.Format

There is "sprintf" for JavaScript which you can find at http://www.webtoolkit.info/javascript-sprintf.html.