Tip calculator and grocery list on phonegap