Refactored main.js to simplify the code and add syntactic sugar.
The final calculation area is now much easier to understand.
Commented out your-total-debt until I have better numbers for it.