Excel does the same thing, and has been used to track money for decades. Somehow, we're all still alive.
Financial applications need user interface elements too, and doing these poorly has caused quite some [1] harm in the past...
[1] https://financialregulation.linklaters.com/post/102j8af/the-...
Please do not use Javascript for finance applications. Just do not do it
Save it for user interface elements and dancing whizzimagigs, where it will do less harm.