Change JSON reference to work with PhoneGap 2.7.