This code, packaged as a PhoneGap app, crashes a Galaxy S4 running Android 4.2.2. Bug in PhoneGap? Bug in Android? Something really stupid that I'm doing?