Adaptions for PhoneGap