PhoneGap client development code