Supplemental code for the tutorial Writing a Custom Camera Plugin for PhoneGap.