This version is old school.
Please find jQuery plugins on npm.
jQuery Number Format
by Team DF
Easily format numbers for display use. Replace numbers inline in a document, or return a formatted number for other uses. Even enables seamless number formatting in input fields as-you-type. Currency formatting is easy too—simply add a currency placeholder in the label of your form element, and set the appropriate format.