modified tip_calculator.js