For PhoneGap