polished functionality on jquery investment estimate