Working on camera in PhoneGap