Calculate balance denomination using javascript
<p>Calculate balance with denomination using javascript. My actual payable amount is 1450 but now i give 2000. The remaining 550 denomination created like the below structure .</p>

<pre><code>1000 *   
500 *    1    500
100 *    
50 *     1     50
20 *     
10 *     
5 *      
2 *      
1*
Balance      550
</code></pre>
