Yet another sprintf() function for JavaScript