String.format for javascript.
From http://stackoverflow.com/questions/1038746/equivalent-of-string-format-in-jquery