Added support for String.format in js