Life hacks in app billing phonegap plugin