sprintf / format for JavaScript strings -- From http://stackoverflow.com/questions/610406/javascript-equivalent-to-printf-string-format/4673436#4673436