fixed #3811,  JavaScript Binding of iOS In-App-Purchase