Counting compound interest for javascript - browser and node.js