Retirement Calculator in Javascript