Tip calculator for Blackberry 10 using WebSDK