Simple and Compound Interest for JS