Added code from "poiuytrez/AndroidInAppBilling" to hopefully work with phonegap build