title: Format value into money
body: <p>I wanted to format the the value 1000 into $1,000, how can I do something like below:</p>
  
  <pre><code>&lt;span&gt;money(1000)&lt;/span&gt;
  
  &lt;h2&gt;Book sales chart&lt;/h2&gt; 
  &lt;script src="//cdnjs.cloudflare.com/ajax/libs/accounting.js/0.3.2/accounting.min.js"&gt;&lt;/script&gt;
  
  &lt;script&gt;
      $(function () {   
          function money(value) {
              return accounting.formatMoney(value, "$");
           }
      }
  &lt;/script&gt;
  </code></pre>