Savings calculator jscript