Simple JS calculator, generates amortization table as well.