Simple Network Connectivity Test for PhoneGap