Testing localStorage for PhoneGap