fixed some javascripts issues and add the finacial goal function