.NET style formatting of numbers implemented in JavaScript.