PhoneGap as a plugin