String.Format for JavaScript