Phonegap test: TipCalculator