Tip Calculator Using Phonegap