Minor changes an fixed bug when using CocoonJS IAP APIs